home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-02 | 2.1 KB | 45 lines | [TEXT/GEOL] |
- Item 9055650 2-Feb-90 06:03PST
-
- From: D4453 Technically Soft, Chris Lang,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: X0591 MacApp Dev Assoc, Howard Katz,IVC
-
- Sub: MacApp filing system?
-
- To: Anyone who knows how MacApp's "File routines" work
- From: Chris Lang, Technically Soft, PRT @D4453
-
- My application needs to open an index the first time the user opens an old
- document or creates a new one. I'm storing the information about the index
- file (fields of the WDPBrec and an AppFile) in the resource fork of the
- Application itself. I can't figure out why I keep getting OSerr -35 or better
- yet, how can I open this index file without presenting the SFDialog????
-
- I have had some limited success. If I place the index within the ".Debug
- Files" of my Application AND start the application from MPW it opens the index
- correctly but only if I start it from MPW and not the Finder.
-
- Question two. When the user selects 'New' he is asked to supply the
- initialization information via a modal dialog. After selecting OK some of this
- information needs to be written to the index file. MacApp correctly updates
- the "document Index" but when I try to write it to disk it OSFails with error
- 21, "Driver reference number doesn't match unit table". But how can this
- be???? I just opened the stupid file. I've followed all the examples and call
- the inherited version first before writing my information to disk. The
- Inherited version of DoWrite doesn't generate the error. It comes from:
- FailOSErr(FSWrite(@refNum,count,size));
- Where refnum was the same used in the inherited version, count=SizeOf(Integer),
- and size is the number of elements in a list (size is an integer);
-
- I could certinaly use some advice. I've spent all week on this with no
- success. I was hoping to spend the weeked making some headway on the
- application itself without trying to debug MacApp so if you have any
- suggestions please let me know as soon as possible.
-
- Thanks Chris Lang
- Technically Soft, PRT, D4453
-
-
-